package day_240527;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

public class LinkedHashSetDemo {
    public static void main(String[] args) {
        Set<String> s1 = new HashSet<>();
        s1.add("xyz");
        s1.add("abc");
        s1.add("dfg");
        System.out.println(s1);

        System.out.println("=== === ===");

        Set<String> s2 = new LinkedHashSet<>();
        s2.add("xyz");
        s2.add("abc");
        s2.add("dfg");
        System.out.println(s2);
    }
}